// 类型约束
type Option = {
    test: string,
    user: {
        regsiter: string,
        regsiter2: string,
        login: string,
        uploadImg?: string,
        saveImg?: string,
        deleteImg?: string,
        getAvatorNickName?: string,
        sendCode?: string,
    },
    hot: {
        hotList: string,
        allList: string,
        topList: string,
        drinkList: string,
        foodList: string,
        goodsList: string,
        shopList: string,
        contentList: string,
        totalList: string,
        addList: string,
        carList: string,
        removeList: string,
        searchList: string,
        addOrder: string,
        orderList: string,
        removeOrder: string,
        removeCar: string,
        addFinish: string,
        finishList: string,
        addUndone: string,
        undoneList: string,
        address: string,
        addressList: string,
        removeUndone: string,
        addCollect: string,
        collectList: string,
        removeCollect: string,
        modifyCup: string,
        modifyTemp: string,
        modifySugar: string
    }
}
// 导出接口列表
export const api: Option = {
    test: '/test',
    user: {
        regsiter: '/user/register',
        regsiter2: '/user/register2',
        login: '/user/login',
        getAvatorNickName: '/user/get_avator_nickname',
        uploadImg: '/user/upload_img',
        saveImg: '/user/save_img',
        deleteImg: '/user/delete_img',
        sendCode: '/user/send_code',
    },
    hot: {
        hotList: '/hot/hotlist',
        allList: '/hot/alllist',
        topList: '/hot/toplist',
        drinkList: '/hot/drinklist',
        foodList: '/hot/foodlist',
        goodsList: '/hot/goodslist',
        shopList: '/hot/shoplist',
        contentList: '/hot/contentlist',
        totalList: '/hot/modifylist',
        addList: '/hot/addlist',
        carList: '/hot/carlist',
        removeList: '/hot/removelist',
        searchList: '/hot/searchlist',
        addOrder: '/hot/addorder',
        orderList: '/hot/orderlist',
        removeOrder: '/hot/removeorder',
        removeCar: '/hot/removecar',
        addFinish: '/hot/addfinish',
        finishList: '/hot/finishlist',
        addUndone: '/hot/addundone',
        undoneList: '/hot/undonelist',
        address: '/hot/address',
        addressList: '/hot/addresslist',
        removeUndone: '/hot/removeundone',
        addCollect: '/hot/addcollect',
        collectList: '/hot/collectlist',
        removeCollect: '/hot/removecollect',
        modifyCup: '/hot/modifycup',
        modifyTemp: '/hot/modifytemp',
        modifySugar: '/hot/modifysugar'
    }
}